package com.framework.common.exception.login;

import org.springframework.security.authentication.InternalAuthenticationServiceException;

/**
 * @author 龘鵺
 * @className com.framework.common.exception.user
 * @description 登录失败异常类
 * @datetime 2022-01-09 11:11:11
 * @version 1.0
 */
public class LoginFailLimitException extends InternalAuthenticationServiceException {
    private String msg;

    public LoginFailLimitException(String message, Throwable cause) {
        super(message, cause);
        msg = message;
    }

    public LoginFailLimitException(String message) {
        super(message);
        msg = message;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg == null ? null : msg.trim();
    }
}
